package com.springboot.util.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: zyj
 * @create: 2020-07-22 10:02
 **/
@Data
@Configuration
@PropertySource("classpath:system.properties")
public class SystemProperties {

    @Value("${AES.PASD:test}")
    private String aesPasd;

    @Value("${async.executor.thread.core_pool_size}")
    private int corePoolSize;

    @Value("${async.executor.thread.max_pool_size}")
    private int maxPoolSize;

    @Value("${async.executor.thread.queue_capacity}")
    private int queueCapacity;

    @Value("${async.executor.thread.keep_alive_seconds}")
    private int keepAliveSeconds;

    @Value("${async.executor.thread.await_termination_seconds}")
    private int AwaitTerminationSeconds;

    @Value("${async.executor.thread.waitFor_tasksTo_complete_on_shutdown}")
    private boolean WaitForTasksToCompleteOnShutdown;

    @Value("${async.executor.thread.name.prefix}")
    private String namePrefix;

    @Value("${taobao.ip.address:test}")
    private String taobaoIp;


    @Value("${baidu.ip.address:test}")
    private String baiduIp;

    @Value("${aliddns.accesskey.secret:test}")
    private String accessKeySecret;

    @Value("${aliddns.accesskey.id:test}")
    private String accessKeyId;

    @Value("${aliddns.endpoint:test}")
    private String endpoint;

    @Value("${aliddns.domain.name:test}")
    private String domainName;

    @Value("${aliddns.key.word:test}")
    private String keyWord;

    @Value("${aliddns.rr.key.word:test}")
    private String rrKeyWord;

    @Value("${aliddns.key.type:A}")
    private String keyType;


}
